import dd from 'dingtalk-jsapi'

dd.ready(function() {
  dd.device.notification.confirm({
    message: '你爱我吗',
    title: '提示',
    buttonLabels: ['爱', '不爱'],
    onSuccess : function(result) {
      alert(result)
    },
    onFail : function(err) {
      alert(err)
    }
  })
})